<h4>Customers</h4>
<table class="table table-striped">
  <thead>
    <tr>
      <th>ID</th>
      <th>Name</th>
      <th>Created at</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @customers.each do |customer| %>
      <tr>
        <td><%= customer.id %></td>
        <td><%= link_to customer.name, customer_path(customer) %></td>
        <td><%= customer.created_at %></td>
        <td>
          <%= link_to 'Edit', edit_customer_path(customer), :class => 'btn btn-mini' %>
          <%= link_to 'Destroy', customer_path(customer), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'New', new_customer_path, :class => 'btn btn-primary' %>
<%= will_paginate @customers, :renderer => BootstrapPagination::Rails %>

